package
{
	public class IdleChatter
	{
		private var chatterArray:Array = 
			["\nShaking hands, kissing babies."
			,"\nShaking babies, kissing hands."
			,"\nPreparing for re-election."
			,"\nWriting a speech."
			,"\nTouring the country."
			,"\nQuelling student uprising."
			,"\nGiving a speech."
			,"\nBuilding roads."
			,"\nRaising taxes."
			,"\nLowering taxes."
			,"\nLooking cool."
			,"\nLosing some hair."
			,"\nPosing for a picture."
			,"\nTalking to some dude in a turbant."
			,"\nGiving a press conference."
			,"\nMeeting with a bunch of generals."
			,"\nRiding an airplane."
			,"\nTaking bribes."
			,"\nSexually harassing an intern."
			,"\nSigning a bunch of papers."
			,"\nScheming."
			,"\nPlanning."
			,"\nPassing laws."
			,"\nPassing gas."
			,"\nSpending some time with the wife."
			,"\nSpending some time with the mistress."
			,"\nReading polls."
			,"\nManipulating the media."
			,"\nLooking out the window."
			,"\nTaking a dump."
			,"\nLooking patriotic."
			,"\nOpening a can of whoopass."
			,"\nReading some book to some kids in some school."
			,"\nListening to a marching band."
			,"\nAttending party rally."
			,"\nPartying with some old rich guys."
			,"\nInaugurating some building."
			,"\nReviewing the troops."
			,"\nRaising military budget."
			,"\nLowering non-military budgets."
			,"\nWatching the news."
			,"\nGiving bribes."
			,"\nDrinking expensive champagne."
			,"\nTrying out new suit."
			,"\nTalking over the phone."
			,"\nOverseeing peace talks."
			,"\nBitching about immigrants."
			,"\nReading top-secret files."
			,"\nBullying the senate."
			,"\nBending justice."
			,"\nDenying global warming."
			]
			
		private var index:Number;
		
		public var lenght:Number;
		
		public function IdleChatter()
		{
			index=0;
			lenght = chatterArray.length;
		}
		
		public function getNext():String
		{
			var selected:String = chatterArray[Math.round(Math.random()*lenght)]; 
			
			var append:Number = Math.round(Math.random()*20);
			
			for (var i:int = 0; i <= append; i++)
				selected += " .";
			
			return selected; 			
		}
	
	}
}